﻿@model InnoWeb.CEND.UI.MVC.Models.News

@*<script type="text/javascript">
    function postToFeed() {
        var obj = {
            method: 'feed',
            redirect_uri: 'http://apps.facebook.com/fotoyarisma',
            link: 'http://apps.facebook.com/fotoyarisma',
            picture: 'http://sinavahazirlikhalleri.com/Images/images/sinavaHazirlikHalleri.png',
            name: 'İstanbul Ticaret Üniversitesi Liseliler Arası Fotoğraf Yarışması ',
            caption: 'Sınava Hazırlık Halleri',
            description: 'Lise 3. ve 4. sınıf öğrencileri arası fotoğraf yarışmasına katıl. Üniversite hazırlık sürecini anlatan bir fotoğraf çek, gönder. Üniversite harçlığını hemen kazan.'
        };

        function callback(response) {
            document.getElementById('msg').innerHTML = "Post ID: " + response['post_id'];
        }

        FB.ui(obj, callback);
    }
</script>*@

<script type="text/javascript">var switchTo5x = true;</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({ publisher: "7ef30cfa-94f9-423a-bcaf-862760510d8b", doNotHash: true, doNotCopy: true, hashAddressBar: false });</script>

<div class="NewsDetailBg">
    <div class="NewsDetail ortala">
        <div class="Aciklama">
            <span class="baslik">
                @if (this.Request.Cookies["_culture"].Value == "tr-TR")
                {
                    <b>@Model.NameTR</b>    
                }
                else
                {
                    <b>@Model.Name</b>
                }
            </span>
            <br />
            <br />
            <img src="@Url.Content("~/Content/Images/Full/" + Model.ImageUrl)" alt="resim" />
            <br />
            <br />
            @if (this.Request.Cookies["_culture"].Value == "tr-TR")
            {
                <p>@Model.TextTR</p>    
            }
            else
            {
                <p>@Model.Text</p>
            }
            <br />
            <br />
            <div style="border:2px dotted; border-color:#BDBDBD; width:18%;border-radius:3px;">
                <p style="text-align:center;">Paylaş</p>
                <span class='st_facebook_large' displaytext='Facebook'></span>
                <span class='st_twitter_large' displaytext='Tweet'></span>
                <span class='st_linkedin_large' displaytext='LinkedIn'></span>
                <span class='st_email_large' displaytext='Email'></span>
            </div>
        </div>
        <div class="clr">
        </div>
        <div class="Digerleri">
            <span class="baslik">@ViewBag.Others</span>
            @{
                var list = InnoWeb.CEND.UI.MVC.Controllers.HomeController.GetNewsItems();
            }
            <ul>
                @for (int i = 0; i < 3; i++)
                {
                    Random rnd = new Random();
                    var item = list.ElementAt(rnd.Next(i, list.Count));
                    
                    <li>
                        <a href="@Url.Action("NewsDetail", "Home", new { newsItemId = item.Id })">
                            <div class="baslik">
                                @if (this.Request.Cookies["_culture"].Value == "tr-TR")
                                {
                                    <b>@item.NameTR</b>    
                                }
                                else
                                {
                                    <b>@item.Name</b>
                                }
                            </div>
                            <div class="icerik">
                                @if (this.Request.Cookies["_culture"].Value == "tr-TR")
                                {
                                    <b>@item.TextTR</b>    
                                }
                                else
                                {
                                    <b>@item.Text</b>
                                }
                            </div>
                        </a>
                    </li>
                }
            </ul>
        </div>
    </div>

</div>
